/*
 * MainGame.h
 *
 *  Created on: May 2, 2011
 *      Author: default
 */

#ifndef MAINGAME_H_
#define MAINGAME_H_

#include <iostream>
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "load_image.h"
#include "Money.h"
#include "Level.h"
#include <cstdlib>
#include <cstdio>
#include <sstream>

using namespace std;

const int SCREEN_WIDTH = 1290;
const int SCREEN_HEIGHT = 965;
const int SCREEN_BPP = 32;

enum State{
	eIntro,
	ePlayGame
};

class MainGame {


	SDL_Surface *m_Background;
	SDL_Surface *m_Cash;
	SDL_Surface *m_Bet;
	SDL_Surface *m_Win;
	bool m_LevelDraw;

public:
	State eState;
	SDL_Surface *m_Screen;
	Money gMoney;
	Level gLevel;

	bool init();
	void onDrawBackground();
	void onDraw();
	void onClick(int nX, int nY);

};

extern MainGame gMainGame;

#endif /* MAINGAME_H_ */
